package org.wm.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.wm.domain.SysNotice;
import org.wm.mapper.SysNoticeMapper;
import org.wm.service.ISysNoticeService;

/**
 * 公告 服务层实现
 * (已按照 Mybatis-Plus 混合模式进行改造)
 */
@RequiredArgsConstructor
@Service
public class SysNoticeServiceImpl extends ServiceImpl<SysNoticeMapper, SysNotice> implements ISysNoticeService {

    @Override
    public IPage<SysNotice> selectNoticePage(Page<SysNotice> page, SysNotice notice) {
        return baseMapper.selectNoticeList(page, notice);
    }
}